<?php
/**
 * 数据处理中心-天气代理
 * 假定此类是服务端开放的接口
 * 2019年12月11日09:09:16
 */
namespace Application\Common\Proxy;

use Application\Common\Proxy\Cloud as Cloud;
use Application\Common\Proxy\Wind as Wind;

class WeatherProxy
{
    // 构造函数
    public function __construct()
    {
        $this -> cloud = new Cloud();
        $this -> wind = new Wind();
    }
    // 获取当前的天气 阴晴、风级
    public function getCurrentLevel()
    {
        $weather = array();
        $weather['cloud'] = $this -> cloud -> getCurrentLevel();
        $weather['wind'] = $this -> wind -> getCurrentLevel();
        return $weather;
    }
}
